

import { PageHeader } from '@/components/page-header';
import styles from './index.module.less';
import { Navigate, Route, Routes } from 'react-router-dom';
import * as UI from './ui'

/** 订单管理 */
export default function Order() {
    return (
        <div className={styles['order']} >
            <div className={styles['body']} >
                <PageHeader title='订单管理' />
                <div className={styles['main']} >
                    <Routes>
                        <Route path='list/*' element={<UI.OrderTable />} />
                        <Route path='create/*' element={<UI.CreateOrder />} />
                        <Route path='details/*' element={<UI.OrderDetails />} />
                        <Route path='edit/*' element={<UI.OrderEdit />} />
                        <Route path='approval/*' element={<UI.OrderApproval />} />
                        <Route path='*' element={<Navigate to="list" />} />
                    </Routes>
                </div>
            </div>
        </div>
    )
}

